package com.baor.controller;

import com.baor.service.AddWorkOrderService;
import com.baor.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping(value = "WorkOrder")
public class AddWorkOrderController {

    @Autowired
    private AddWorkOrderService addWorkOrderService;

    @RequestMapping(value = "addWorkOrder")
    public R addWorkOrder(@RequestBody Map<String, Object> params) {
        return addWorkOrderService.addWorkOrder(params);
    }
    @RequestMapping(value = "addWorkOrderList")
    public R addWorkOrderList(@RequestBody Map<String, Object > params){
        return addWorkOrderService.addWorkOrderList(params);
    }
    @RequestMapping(value = "WorkOrderHistoryList")
    public R WorkOrderHistoryList(@RequestBody Map<String, Object > params){
        return addWorkOrderService.WorkOrderHistoryList(params);
    }

}
